<template>
  <div id="contanier">
    <a-card v-for="(item, index) in list" :key="index" :id="`card-${index}`" class="mx-auto w-1/2 mb-3">
      <div :id="`header-container-${index}`" class="flex justify-between items-center mb-4">
        <div class="flex items-center gap-2">
          <a-avatar :id="`avatar-${index}`" :size="24" :src="img" class="flex-shrink-0" />
          <a-typography-text :id="`username-${index}`" class="text-sm font-medium">{{ item.header }}</a-typography-text>
          <a-typography-text :id="`divider-${index}`" class="text-sm text-gray-300">{{ item.headerin }}</a-typography-text>
          <a-typography-text :id="`category-${index}`" type="primary" class="text-sm font-medium text-sky-500">
            {{ item.headerlaw }}
          </a-typography-text>
        </div>
        <a-typography-text :id="`time-${index}`" class="text-gray-500 text-sm">{{ item.headertime }}</a-typography-text>
      </div>
      <a-image :id="`preview-image-${index}`" class="w-full h-[300px] object-cover mb-4" :preview="false" :src="img" />
      <a-card :id="`content-card-${index}`" class="p-4">
        <a-typography-title :id="`title-${index}`" :level="4" class="!text-2xl !mb-2">
          {{ item.textcontenttitle }}
        </a-typography-title>
        <a-typography-text :id="`content-${index}`" class="text-base text-gray-300">
          {{ item.textcontent }}
        </a-typography-text>
      </a-card>
    </a-card>
  </div>
</template>
  
<script setup lang="jsx">
import img from '../../../assets/images/login-bg.png';
const list = ref([
  {
    header: '法若',
    headerin: 'in',
    headerlaw: '法律问答',
    headertime: '昨天 18:24',
    img,
    textcontenttitle: '如何获取欧易OKX最新可访问入口备用官网链接',
    textcontent:
      '由于监管需求等特殊原因，欧易OKX网站爱中国大陆无法直接访问。所以可以通过https://href.host/okx进入最新可访问的欧易OKX官网备用链接。',
  },
  {
    header: '法若',
    headerin: 'in',
    headerlaw: '法律问答',
    headertime: '昨天 18:24',
    img,
    textcontenttitle: '如何获取欧易OKX最新可访问入口备用官网链接',
    textcontent:
      '由于监管需求等特殊原因，欧易OKX网站爱中国大陆无法直接访问。所以可以通过https://href.host/okx进入最新可访问的欧易OKX官网备用链接。',
  },
  {
    header: '法若',
    headerin: 'in',
    headerlaw: '法律问答',
    headertime: '昨天 18:24',
    img,
    textcontenttitle: '如何获取欧易OKX最新可访问入口备用官网链接',
    textcontent:
      '由于监管需求等特殊原因，欧易OKX网站爱中国大陆无法直接访问。所以可以通过https://href.host/okx进入最新可访问的欧易OKX官网备用链接。',
  },
]);
</script>

<style></style>